using System;
using System.Collections.Generic;
using System.Linq;
using BusinessObjects.Base;
using Datalayer;

namespace BusinessObjects.Logic.Base {
    public static class ObjectExtensions {
        public static void Delete<T>(this T input) where T : IEntity {
            DBBase dbBase = new DBBase();
            //dbBase.Delete<T>(new List<T>() { input });
        }

        public static void Insert<T>(this T input) where T : IEntity {
            DBBase dbBase = new DBBase();
            //dbBase.Insert<T>(new List<T>() { input });
        }

        public static IEnumerable<T> Select<T>(this T input) where T : IEntity {
            DBBase dbBase = new DBBase();
            return null;
            //return dbBase.Get<T>();
        }

        public static void Update<T>(this T input) where T : IEntity {
            DBBase dbBase = new DBBase();
            //dbBase.Update<T>(new List<T>() { input });
        }
    }
}
